package com.alibaba.dubbo.demo.consumer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.dubbo.demo.Student;

public class NotifyService implements Notify {

	private static Logger logger = LoggerFactory.getLogger(NotifyService.class);

    @Override
    public void oninvoke(Student st) {
    	logger.info("======oninvoke======, param: " + st.getName());
    }

    @Override
    public void onreturnWithoutParam(Student result) {
    	logger.info("======onreturn======, result: " + result);
    }

    @Override
    public void onreturn(Student result, Student param) {
    	logger.info("======onreturn======, param: " + param.getName() + ", result: " + result);
    }

    @Override
    public void onthrow(Throwable ex, Student param) {
    	logger.info("======onthrow======, param: " + param.getName() + ", exception: " + ex.getMessage());
    }

}